﻿namespace WebApplication1.Models
{
    public class FileItem
    {
        public string Id { get; set; } = string.Empty;
        public string Name { get; set; } = string.Empty;
        public string OriginalName { get; set; } = string.Empty;
        public string FilePath { get; set; } = string.Empty;
        public int DownloadCount { get; set; }
        public DateTime CreateTime { get; set; }
        public DateTime? LastDownloadTime { get; set; }
    }

    public class DownloadRequest
    {
        public List<string> FileIds { get; set; } = new List<string>();
    }

    public class DownloadResult
    {
        public bool Success { get; set; }
        public string Message { get; set; } = string.Empty;
        public string? FileName { get; set; }
        public string? DownloadUrl { get; set; }
    }
}